package com.library.bookservice.domain.port;

import com.library.bookservice.domain.model.BorrowRecord;
import java.util.List;

/**
 * 借阅服务端口
 * 定义借阅业务服务的契约接口
 */
public interface BorrowServicePort {
    BorrowRecord borrowBook(Long bookId, String borrowerName, String borrowerPhone);
    BorrowRecord returnBook(Long recordId);
    List<BorrowRecord> getBorrowRecordsByBookId(Long bookId);
    List<BorrowRecord> getBorrowRecordsByBorrower(String borrowerName);
    List<BorrowRecord> getActiveBorrowRecords();
}
